package com.tanjie.blackbean.web.annotation;

import com.tanjie.blackbean.pojo.response.BlackBeanResponse;
import com.tanjie.blackbean.pojo.response.ResponseBean;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author: tanjie
 * @date: 2022-03-30
 **/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface WrapResponse {

    boolean enable() default true;

    String location() default "empty";

    boolean wrapIfEmpty() default true;

    Class<? extends ResponseBean> responseType() default BlackBeanResponse.class;

}
